﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppManager.Model
{
    /// <summary>
    /// Id,Sort,CreateDate,UpdateDate,Flag
    /// </summary>
    public class BaseModel
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public decimal Sort { get; set; } = Convert.ToDecimal(DateTime.Now.ToString("yyyyMMddHHmmss"));
        public DateTime? CreateDate { get; set; }
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Flag { get; set; } = true;
    }
}
